package StudyCode.summary.mycollection;

import java.util.Collection;
import java.util.Iterator;
import java.util.TreeMap;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class IterateThroughTheValuesOfTreeMap {
	public static void main(String[] args) {
		TreeMap treeMap = new TreeMap();
		treeMap.put("1", "One");
		treeMap.put("2", "Two");
		treeMap.put("3", "Three");

		Collection c = treeMap.values();

		Iterator itr = c.iterator();

		while (itr.hasNext())
			System.out.println(itr.next());
	}
}
